﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.DNL.CSharp.DesignPattern.ObserverPattern.NumberChange
{
    public class OctalObserver:Observer
    {
        public OctalObserver()
        {
            
        }
        public OctalObserver(Subject subject)
        {
            subject.AddObserver(this);
        }

        public override void Update()
        {
            Console.WriteLine($"Octal  String: {Convert.ToString(Subject.State, 8)}");
        }
    }
}
